import request from '@/utils/request'
import {pageCusMessage} from "@/api/system/customermessage";


/**
 * 分页查询
 * @param query
 * @returns {AxiosPromise}
 */
export function pageSolution(data) {
  return request({
    url: '/api/solution/page',
    method: 'post',
    data: data
  })
}


/**
 * 详情接口
 * @param query
 * @returns {AxiosPromise}
 */
export function detailSolution(data) {
  return request({
    url: '/api/solution/detail',
    method: 'post',
    data: data
  })
}


/**
 * 添加
 * @param query
 * @returns {AxiosPromise}
 */
export function addSolution(data) {
  return request({
    url: '/api/solution/add',
    method: 'post',
    data: data
  })
}

/**
 * 添加
 * @param query
 * @returns {AxiosPromise}
 */
export function getSolutionTypeList() {
  return request({
    url: '/api/solution_type/list',
    method: 'get'
  })
}



/**
 * 删除轮播
 * @param query
 * @returns {AxiosPromise}
 */
export function delSolution(data) {
  return request({
    url: '/api/solution/delete',
    method: 'post',
    data: data
  })
}


/**
 * 更新
 * @param query
 * @returns {AxiosPromise}
 */
export function updateSolution(data) {
  return request({
    url: '/api/solution/update',
    method: 'post',
    data: data
  })
}

